module.exports = {
  compact: false,
  presets: [
    '@vue/cli-plugin-babel/preset',
    [
      '@babel/preset-env',
      {
        targets: {
          edge: '17',
          firefox: '60',
          chrome: '67',
          safari: '11.1',
          ie: '11'
        },
        useBuiltIns: 'entry',
        corejs: {
          version: '3.6.5',
          proposals: true
        }
      }
    ]
  ],
  plugins: [
    "@babel/plugin-transform-arrow-functions", // 箭头函数转换
    "@babel/plugin-proposal-optional-chaining", // 可选链（?.）转换
  ],
  'env': {
    'development': {
      'plugins': ['dynamic-import-node']
    }
  }
}
